Security News
GitHub Removes Malicious Pull Requests Targeting Open Source Repositories
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
@react-md/utils
Advanced tools
This package is for providing reusable accessibility hooks, components, and
utilities, a base css reset and other utility mixins, as well as general layout
and app size components and hooks. This package will be used by every other
scoped package within react-md
, and has an extremely useful mixin for only
generating styles for packages that have been installed.
Check out the usage section below for more details.
npm install --save @react-md/utils
You should check out the full documentation for live examples and more customization information, but an example usage is shown below.
The main export for this package will mainly be the exposed mixins which can be included with the following import:
@import "~@react-md/utils/dist/mixins";
@include rmd-utils-base;
.custom-class {
@include rmd-utils-rtl {
margin-left: auto;
margin-right: 1rem;
}
margin-left: 1rem;
}
.button {
@include rmd-utils-hide-focus-outline;
}
One of the great things about this package is that there is a mixin that will automatically include all the react-md styles for packages you have included in this file.
@import "~@react-md/app-bar/dist/mixins";
@import "~@react-md/avatar/dist/mixins";
@import "~@react-md/button/dist/mixins";
@import "~@react-md/elevation/dist/mixins";
@import "~@react-md/utils/dist/mixins";
@include react-md-utils;
The example above will automatically include the styles for the app-bar
,
avatar
, and button
packages as well as the base styles utils styles.
FAQs
General utils for react-md.
The npm package @react-md/utils receives a total of 916 weekly downloads. As such, @react-md/utils popularity was classified as not popular.
We found that @react-md/utils demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.